package demo1;

/**
 * @Author liangzai
 * @Description:
 */
public class Dog {
    public String name;
    public int age;

    //构造方法
    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat(){
        System.out.println("正在吃饭");
    }
}
